Updated the Appointment complete switch based on DB result