add CouchDB view for file-type stats