Improvements form/SQL, fix SQL, indentation

ValidateForm can force data to be validated
Fix a missing escaping in SQL
Indentation
add _createSQL for sql models which gives the SQL CREATE TABLE command