set up pg for db