@manawydan - have you tried doing a database restore, it will build a fresh database from the .opf files in the book folders, that's why they're there.
Might as well start from the books that are actually in the library, at least then you should have a stable base on which to add missing books etc
BR
|