creating crud for entities and modeling