moved db config stuff back to db.js