Add addDocumentsToHyperCorpus function
This commit refactors the codebase to add a new function called `addDocumentsToHyperCorpus` which generalises the common pattern of calling `insertMasterDocs` and later adding the documents via the DB `Doc` functions. It also "lowers" some functions to run into a plain `DBCmd`.
| Name | Stage | Failure | ||
|---|---|---|---|---|
| 
 
failed
 
 | 
test | Test | ||
 | 
||||