update appointmentDAO query