insert with entity id