Corrected query delete button