All data flows through a mock database.
This is a demo, so control flow is optimisitc to favor readability.
it assumes successful writes.
There's a summary the relational db at the bottom of the page.