This is caused by a bug in the Kobo firmware. Older Kobos see this
happen more rarely, the newer Kobo Touch more often. You either need to
hard reset your device, or, if that does not restore the database,
follow the instructions here:
https://www.mobileread.com/forums/showthread.php?t=94789