Deactivate debug mode in sql_statements.py
Add tests for sql_statements
Remove whitespace from generated query