Code for the views in our CouchDB instance