can't solve the SQL syntax errors, they are automatically generated by
the SchemaTool and the .orm file seems fine