Removed various direct accesses to the DBStore.objectBases hash.
Trivial cleanups in DBStore.