In tracker_mediainfo, two fields are JSON in fact (categories and usages). That causes issues when you want to analyze those fields. Where SQL query was enough, a full script is required sometimes.
It would be nice to have those fields converted into a database-only solution, for instance a Usage class with following attributes:
Category can be done analogically.