Started conversion to use CouchDB