added index for appointments