working on the delete method on the real database