some slight changes to use postgres as database, and getting things ready for heroku