Adding vhost as an optional parameter in connections