working on couchdb and curl