generating crud, adding ModelFactory and ModelCategory, register service