changing db connection to support production deployment at heroku