delete from client queries mongodb for id, and then pulls the correct element/object from the array