Revised for CouchDB

Rebuilt inside Eclipse to use the CouchDB designs