fix pg connections