create entity and fetch all entities