fixed db.js for heroku mongo