Thanks you very much, kiwidude. Refresh the view was exactly what I wanted. I was looking at db objetc, but you're right, the db was ok, the key was the library_view object.
Thanks again for you help (and for your plugins, I'm learning a lot looking at your code)