code: def update(self, db):
          
  
          self.lock.acquire()
          update_db(self.db, db.db)
          self.lock.release()
docs: update(db)
  
          Update this database with all resources entries in the resource
          database DB.