Refactor Sql into a class, same api as before
Merge pull request #93 from yc662/makeSqlClass

Refactor Sql into a class, same api as before