My mistake, from the demo I thought this was just creating a JSON object, and there was no actual backend database.
Right. The demo implements the backend database in Javascript, so you can run real queries against it. (Still, the whole thing is confusing and I'll make it much, much better)
slava @ rethink -- I was responsible for the tutorial
In the latter case you're creating a data structure in the host language (which of course is immensely useful, but completely different).