DB schema
Special model class for auto-numbering
Added factory for auto-numbering class