That error is telling you one of your database files is unreadable - which from the behavior you are experiencing, must be a cash game table. Try exporting all of your hands (see
this guide for more on exporting), creating a new database and reimporting your hands. Once you have a working database, you can delete the old corrupted one.