Connecting to remote database; moved info to local.js