Adds module database insertion function.
Modifies module insertion to include all known data.
Publish modules in epub to archive
Pass in the cursor for future transactional support.
Refactors module insertion code into reusable pieces.
Adds tree insertion from a dictionary based tree.
Adds collection insertion for metadata and trees.