Updated some more database stuff to get heroku working