Upsert is deleting docs for some reason