Change pg connector manager to use promises correctly