Feels like swapping filesystem complexity for database complexity.

I would choose a database for this kind of analysis

haha yeah pretty much. but postgres already solves most of that complexity for you, so you get SQL queryability almost for free.