modifying db access for being able to connect on heroku