Add index for records