Looks like this could really be close to an in-memory objectdb typed interface... if you made your queries return functions that act on the database, you could use it for creating a data abstraction layer interface. From there, you could bind to a storage engine for serialization/deserialization.
Really cool, and pretty close to some useful primitives indeed.