Add entity and session