Fixed pg sqlite problem to enable heroku deployment