This refactors the storage API pretty substantially, and represents a breaking change to the schema used by the sqlite storage