Added CouchDB view for collections.