Fix pg endpoint name