Add host argument to get_connect_string()

'localhost' value used to be hardcoded in get_connect_string().
Now it's possible to pass a custom host name as a function argument.
Wrote test for this

Change-Id: I3ae9f1a7df0bb378da1210cd89eef3e5f203cf34
Merge "Add host argument to get_connect_string()"