two sql fixes in the new stuff
docstring fix