reduce complexity of postgres driver