add delete method in database