Amended to use bulk write

More suitable to pay per use CouchDB hosting such as Cloudant