Future<void> updateDocument(Document document) async { documentBox.put(document); document.chunks.applyToDb(); }