added couchdb stuff