Fixed bugs in SQL, format() string. Also indented docstring.
Merge pull request #1 from pgexperts/runtime-bug-fixes

Fixed bugs in SQL, format() string. Also indented docstring.