switch db to PG