fixing the connection to database for Heroku