Finish SQL generate
Merge pull request #1 from egame/master

Finish SQL generate