You got a corrupted database, this is causing all the problems. You could try to repair it, or just move/delete the old database.
Such errors are usually happen due to EOL SD-Cards or sudden power losses which lead to filesystem errors. Do you have a proper power supply for your device?