Changed db from sqlite3 to pg for heroku