Move connection string handling to http client