Enabling DB/postgreSQL to work correctly when deployed on Heroku.