Added first stab in the dark to get database upgrades to work in Heroku