Fixing heroku db bug