ABG
14
Image names you get from the Image Picker aren't permanent enough to store in TinyDB, from what I see in the ImagePicker Help:
Regardless of how you got the current picture, you are using global variable pic as both a list and a single picture name?
If you keep more than one TinyDB, you can avoid tag/value conflicts by using different NameSpace values, like PICTURES vs BOOKS.
Here is a sample app tutorial that matches images and text ...