switch to pg, setup