extracting couchdb bulk documents