Fixing more database errors for heroku