Small improvement to couchdb lib