Fixed Heroku database bug