Assorted minor postgresql cleanups

Fix documentation, cleanup test cases, test utf8 save/restore