Cleaned up, added update method for index and appointmentdate