moved db config to local.js