added pg setup