fixed db error now ready for Heroku