added pg adapter