adding entities and persistence