You want to store length of list not list itself, since in the following code you are comparing its length >=3.
Or store the list, and get its length when it is returned frrom tinydb
Like This: