test db to pg