delete appointment from sql working