Create new entities and modified the old ones