Change db to make compatible with Heroku