Fixed database use for Heroku