Call of getAppointments() in AppointmentsTable is now correct