How do I get the file names and hash values of my library?

How can I get the file names and hash values (I assume that Plex saves a hash value of the file to detect moved/renamed files) for my media library?

I run Plex Media Server on my Shield, and my media library is on a network share. Unfortunately, the media drive died, and while restoring from a backup something happened to the backup drive so that it suddenly is shown as empty! I was able to restore many (hopefully all, but haven’t been able to verify that) files by running a data recovery software on the backup hard drive, but the restored files are named 000001.mkv, 000002.mkv, 000003.m4v, etc. instead of their original names.
Some files have metadata embedded, but far from all.

I want to be able to calculate the hash of a restored file, compare it to the hashes in the Plex database and rename the file to its original name. Any help, hints or suggestions are deeply appreciated.

No one? Not even how to get the Plex database from the Shield?

By using the steps in https://support.plex.tv/articles/220347688-accessing-internal-storage/ I managed to get hold of a quite recent database backup, should be OK even if I didn’t get the latest actual database.

The database is SQLite and can be browsed with e.g. http://sqlitebrowser.org

Now I have to find all info I need. This is what I have found so far:
The media_parts table has the fields hash and file which on first glance should be of use to me, however I can’t seem to match any hashes to actual files.
There is also a size, so I guess I could use that as well to try to map the file names.

Any info on where the actual hash of the media file is saved?