remove debug code
-more postgresql fixes