fixing PostgreSQL error on Heroku