added delete method to couchdb