Changed db.js to work with Heroku