Merge pull request #1 from egame/master

Finish SQL generate