def newId(self, _wantedId=0):
        if _wantedId==self.lastId:
            return self.lastId

        self.fetch()

        self.maxId+= 1
        if _wantedId>self.maxId:
            self.maxId= _wantedId
        
        self.flush()

        self.lastId= self.maxId

        return self.lastId

        

#   decrease stored maxid if it is same as current
dataset/ETHPy150Open NikolayRag/typeTodo/dbFile.py/TodoDbFile.newId/original