How would the gun equivalent of driver's test and maintaining a license have prevented this?

The fact is, someone with packs of firecrackers could have caused a lot of injuries and deaths by simply causing a packed in crowd of 20,000 people to panic and stampede all over each other.