All data for this is pulled from (and written to) a "database".
For the sake of a simple demo, the code below is optimisitic;
it assumes successful writes.
Ther is a summary of the db at the bottom of the page.