more tweaks to get postgres to work on heroku