added logging to figure out why db wont work on heroku