Several minor fixes needed for heroku and postgres