connect to remote database