[hotfix] Fix the way the dictionary of samples is parsed

This PR fixes a bug that caused the report generation to crash. The dictionary of samples was not being parsed correctly after the update to the new DB structure.