Convert sqlite3 to pg