Fixed postgresql and heroku issue