changes to allow for heroku and moving to postgres