Sorry, I forgot your bookmarks...
Some of the Linux wizards on this forrum might help you. The fix of database might be very/quite simple, for experienced person. That is not me. My only experience with Linux is M92 and android tablet.
Try to start a new thread asking where is database located and what is its structure. And how to modify current page number stored in it.