fixed postgres issue for heroku