- modified insertDocument => updateDocument, eraseDocument