Moderator Notice
@t.below - welcome to Mobileread
I moved your post to its own thread. As a general rule for the calibre forum at least we prefer members create a new thread rather than post at the back of existing thread.
That error message indicates the database is probably corrupt is some way (see last line).
Was calibre working before?
Do you have a backup of your library ?
BR