code: def readDB(self):
          
          self.dm = DataModel(directory = tools.getConfigDir())
          if (self.first_start):
              print(pre, "readDB : first start")
              self.dm.clearAll()
              self.dm.saveAll()
  
          # If camera collection is corrupt
          if not self.dm.checkCameraCollection():
              self.dm.clearCameraCollection()
docs: Datamodel includes the following files: config.dat, devices.dat