debugging server-side pg issue