update sql.
Merge pull request #274 from forumbyr/master

update sql.
Merge pull request #276 from cnnic/dev

Dev