Adding couchdb stuff