> Why not just have the filesystem be a SQLite DB then?

Already exists: https://github.com/narumatt/sqlitefs

No idea what the performance is like, though… it uses FUSE, so that is going to add some overhead compared to an in-kernel filesystem