Duplicate insert handling