* adjust sql.
 * add priv for bug-batchClose.