overwrite entire doc when updating duplicates