created AppointmentUpdateThread.cs