Working on CouchDB driver