create the entities and the related controller