Python docstring update for sql.py.

Mostly related to the following two rules in PEP8 and docstring convention:
- Line length < 72 chars.
- First line should be a concise description of the function/class.