Heroku / postgres deployment fixes.