add IsDeleted flag to entities