reducing db tests to postgres