(PDB-708) Structured fact storage

This series of commits turns on structured fact storage, but keeps backwards compatibility for now.
I saw that, but had no idea of the context of the problem so didn't change it. I'll take a look.