finally set up pg