added pg adaptor