database working both locally and on heroku