update results, and store in couchdb