change sqlite3 to pg for deployment'