added interval for appointments table