Restore context table to get_records and require a matching context for the record count query