update app to use postgres for heroku