async function insert(doc, id = uuid.v1()) {
    doc.type = DOC_TYPE;

    try {
        const data = await db.insert(id, doc, db.durabilityOptions);