Add sql analysis for debugging
Fix indentation
Merge pull request #123 from andig/sql-analysis

Add sql analysis debug information