Add a database method to listing areatriggers with an AIName instead of directly calling WorldDatabase.ExecuteQuery. Method is called AreaTriggerHasSmartAI and returns a bool.