This example uses a Gears database for storage.
Note that the js for the example code is not minified so it is readable. See gears.js.