According to the title of your post, you have a broken database
To restore, look here:
https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/
When said, you wasn’t very informative in your post, but latest version of unraid has been known to break SQLite databases