Need help for storing data in TinyDB based on index of list

Disclaimer: I'm a beginner (willing to learn)

I plan on making a character selection that when the picture of the character is displayed and after I click ok (imagesprite1) TinyDB will store the character I choose.
The problem is... I can't figure out how to make the next and previous button work as well as how to store it when it's a list...

For the previous button to work you have to compare ... > 1

To store the chosen character in TinyDB, what about storing the list index? You could use the Index in list block for that. .

http://ai2.appinventor.mit.edu/reference/blocks/lists.html#indexinlist

Taifun

Will you have multiple characters in TinyDB?