dumping my second class syncdb.js for the real solution couchdb-update-views