Datbase now does simple reduce functions.  Output of views is cimpatible with CouchDB.