changing app from sqlite3 to pg for heroku deployment