Migrated from sqlite3 to postgres for use with heroku