added support for connecting to remote db
merged