Improve SQL docs #660