switch dev and test db to postgres