Any help is appreciated..
The itemid does not necessarily relate to an activity or resource. What it means depends on where the file was uploaded.
Look instead at the contextid and component columns. They may tell you want you want to know. However, you really need to read the File API docs: https://docs.moodle.org/dev/File_API