Persitence refactor to easily add new entities with basic crud operations support