switched db to postgres from sqlite3