rework record template generation
refactor adding columns
refactor table definition
refactor index definition
cleanup
refactor attribute and option definitions
simplify column definition
rafactor definition of subclasses
refactor relation definition
simplify orm templates
hot fix