Database Corrupt when trying to move server to new system

If the old server was not cleanly shut down, the DB might be corrupt. Revert to one of the backup copies.
https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/