add null handling to generate SQL
Merge branch 'master' of https://github.com/3-mode/lumens.git