added delete functionality to couchDB