Minor changes on sql.

svn path=/sandbox/; revision=83048