Changed DB connect to connect to remote DB