The db maintenance script for Jade references terms that were valid for an older JSON schema, which makes it confusing to reason about what it actually does.
This should be updated to reflect the most recent schema along with the newer terminology outlined in the glossary.