changing pg adapter