sqlite 3 fixes for heroku