Index: branches/RC/core/install/install_schema.sql
===================================================================
diff -u -N -r10399 -r10494
--- branches/RC/core/install/install_schema.sql	(.../install_schema.sql)	(revision 10399)
+++ branches/RC/core/install/install_schema.sql	(.../install_schema.sql)	(revision 10494)
@@ -537,3 +537,47 @@
   KEY `Status` (`Status`),
   KEY PortalUserId (PortalUserId)
 );
+
+CREATE TABLE StatisticsCapture (
+  StatisticsId int(10) unsigned NOT NULL auto_increment,
+  TemplateName varchar(255) NOT NULL default '',
+  Hits int(10) unsigned NOT NULL default '0',
+  ScriptTimeMin decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  ScriptTimeAvg decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  ScriptTimeMax decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  SqlTimeMin decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  SqlTimeAvg decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  SqlTimeMax decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  SqlCountMin decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  SqlCountAvg decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  SqlCountMax decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  PRIMARY KEY  (StatisticsId),
+  KEY TemplateName (TemplateName),
+  KEY Hits (Hits),
+  KEY ScriptTimeMin (ScriptTimeMin),
+  KEY ScriptTimeAvg (ScriptTimeAvg),
+  KEY ScriptTimeMax (ScriptTimeMax),
+  KEY SqlTimeMin (SqlTimeMin),
+  KEY SqlTimeAvg (SqlTimeAvg),
+  KEY SqlTimeMax (SqlTimeMax),
+  KEY SqlCountMin (SqlCountMin),
+  KEY SqlCountAvg (SqlCountAvg),
+  KEY SqlCountMax (SqlCountMax)
+);
+
+CREATE TABLE SlowSqlCapture (
+  CaptureId int(10) unsigned NOT NULL auto_increment,
+  TemplateNames text,
+  Hits int(10) unsigned NOT NULL default '0',
+  SqlQuery text,
+  TimeMin decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  TimeAvg decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  TimeMax decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
+  QueryCrc int(11) NOT NULL default '0',
+  PRIMARY KEY  (CaptureId),
+  KEY Hits (Hits),
+  KEY TimeMin (TimeMin),
+  KEY TimeAvg (TimeAvg),
+  KEY TimeMax (TimeMax),
+  KEY QueryCrc (QueryCrc)
+);
\ No newline at end of file
