How do I work with lists and tinydb? (based on @TimAi2 tutorial)

I think you will find this safer and more stable than your makelistview procedure

It is important not to scramble your input while working on it.

P.S. I did not address the issue of what to do if any of your rows has less than 30 columns in it.