Welcome to the Kobo world!
The first time I got a corrupted database was when I tried to create a folder and did it the wrong way. So now I don't create them, Calibre does. Excepted when I want to add some fonts.
With the corrupted database, I needed to log out of my account and log in again.
Bonne chance