create a sql generator for generating sqls.