Updated docs.
Updated sql stuff.