docs: def _finalize_db(self):
          """Convert defaultdicts to regular dicts."""
          for k, v in self._els_idxed.items():
              self._els_idxed[k] = dict(v)
          self._els_idxed = dict(self._els_idxed)