refactored ObjectsDb