swapped sqlite3 for pg