SQLite3 BS to PG