(PDB-708) Structured fact storage

This series of commits turns on structured fact storage, but keeps backwards compatibility for now.
We'll probably want to set aside some benchmark time at the end, my guess is that this would be pretty slow