Docs.
Clean up and doc sql module.