Index: database_structure.sql
===================================================================
--- database_structure.sql	(revision 28710)
+++ database_structure.sql	(revision 28711)
@@ -199,7 +199,7 @@
   `Hits` int(10) unsigned NOT NULL default '0',
   `IP` char(1) NOT NULL default '',
   `UserID` int(10) unsigned NOT NULL default '0',
-  `Interface` enum('api','webview') default NULL,
+  `Interface` enum('api','webview') default NULL,
   PRIMARY KEY  (`SessionID`)
 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
@@ -303,7 +303,7 @@
   `W_Comments` text NOT NULL,
   `W_Debug` char(1) NOT NULL default '0',
   `W_DebugCount` int(10) unsigned NOT NULL default '0',
-  `W_BalanceThreshold` decimal(11,4) unsigned NOT NULL default '0.0000',
+  `W_BalanceThreshold` decimal(11,4) unsigned NOT NULL default '0.0000',
   `W_AllowDataLogging` char(1) NOT NULL default '0' COMMENT 'Determines whether logging of data for update services is allowed',
   PRIMARY KEY  (`UserID`),
   UNIQUE KEY `Nickname` (`Nickname`),
@@ -540,29 +540,29 @@
   `ResponseText` text,
   PRIMARY KEY  (`LogID`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `W_RequestLog`
---
-
-CREATE TABLE `W_RequestLog` (
-  `LogID` int(10) unsigned NOT NULL,
-  `EndpointProtocol` enum('http','https') NOT NULL default 'http',
-  `EndpointPath` varchar(100) NOT NULL default '',
-  `MethodName` varchar(64) NOT NULL,
-  `IncludeTime` float unsigned NOT NULL default '0',
-  `InitTime` float unsigned NOT NULL default '0',
-  `ActionTime` float unsigned NOT NULL default '0',
-  `DatabaseTime` float unsigned NOT NULL default '0',
-  `TotalTime` float unsigned NOT NULL default '0',
-  PRIMARY KEY  (`LogID`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
 -- --------------------------------------------------------
 
 --
+-- Table structure for table `W_RequestLog`
+--
+
+CREATE TABLE `W_RequestLog` (
+  `LogID` int(10) unsigned NOT NULL,
+  `EndpointProtocol` enum('http','https') NOT NULL default 'http',
+  `EndpointPath` varchar(100) NOT NULL default '',
+  `MethodName` varchar(64) NOT NULL,
+  `IncludeTime` float unsigned NOT NULL default '0',
+  `InitTime` float unsigned NOT NULL default '0',
+  `ActionTime` float unsigned NOT NULL default '0',
+  `DatabaseTime` float unsigned NOT NULL default '0',
+  `TotalTime` float unsigned NOT NULL default '0',
+  PRIMARY KEY  (`LogID`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+-- --------------------------------------------------------
+
+--
 -- Table structure for table `W_SyncBalance`
 --
 
@@ -682,15 +682,15 @@
 -- Table structure for table `W_ErrorLog`
 --
 
-CREATE TABLE `W_ErrorLog` (
-  `Action` varchar(255) NOT NULL,
-  `ErrorCode` varchar(255) NOT NULL,
-  `FirstOccurrence` datetime NOT NULL,
-  `LastMail` datetime NOT NULL,
-  `LastOccurrence` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
-  `AmountTotal` int(10) unsigned NOT NULL default '1',
-  `AmountSinceLastMail` int(10) unsigned NOT NULL default '0',
-  PRIMARY KEY  (`Action`,`ErrorCode`)
+CREATE TABLE `W_ErrorLog` (
+  `Action` varchar(255) NOT NULL,
+  `ErrorCode` varchar(255) NOT NULL,
+  `FirstOccurrence` datetime NOT NULL,
+  `LastMail` datetime NOT NULL,
+  `LastOccurrence` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
+  `AmountTotal` int(10) unsigned NOT NULL default '1',
+  `AmountSinceLastMail` int(10) unsigned NOT NULL default '0',
+  PRIMARY KEY  (`Action`,`ErrorCode`)
 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
 
@@ -820,39 +820,50 @@
   KEY `Key` (`Key`,`TTL_Time`)
 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
-
--- --------------------------------------------------------
-
---
--- Table structure for table `W_BusinessDataLog`
---
-
-CREATE TABLE `W_BusinessDataLog` (
-  `UserID` int(10) unsigned NOT NULL,
-  `DossierNo` int(8) unsigned zerofill NOT NULL,
-  `SubDossierNo` smallint(4) unsigned zerofill NOT NULL,
-  `DateRetrievedVersion` date NOT NULL,
-  `IsCurrent` tinyint(3) unsigned NOT NULL default '0',
-  PRIMARY KEY  (`UserID`,`DossierNo`,`SubDossierNo`),
-  KEY `UserID` (`UserID`,`IsCurrent`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
+-- --------------------------------------------------------
 
+--
+-- Table structure for table `W_BusinessDataLog`
+--
+
+CREATE TABLE `W_BusinessDataLog` (
+  `UserID` int(10) unsigned NOT NULL,
+  `DossierNo` int(8) unsigned zerofill NOT NULL,
+  `SubDossierNo` smallint(4) unsigned zerofill NOT NULL,
+  `DateRetrievedVersion` date NOT NULL,
+  `IsCurrent` tinyint(3) unsigned NOT NULL default '0',
+  PRIMARY KEY  (`UserID`,`DossierNo`,`SubDossierNo`),
+  KEY `UserID` (`UserID`,`IsCurrent`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
 -- --------------------------------------------------------
 
 --
 -- Table structure for table `W_SyncBusinessDataLog`
 --
 
-CREATE TABLE `W_SyncBusinessDataLog` (
-  `SyncID` int(11) unsigned NOT NULL auto_increment,
-  `Synced` tinyint(1) unsigned NOT NULL default '0',
-  `RecordTimestamp` int(10) unsigned NOT NULL,
-  `Action` enum('insert','delete') NOT NULL,
-  `UserID` int(11) unsigned NOT NULL,
-  `DossierNo` int(8) unsigned zerofill NOT NULL,
-  `SubDossierNo` smallint(4) unsigned zerofill NOT NULL,
-  PRIMARY KEY  (`SyncID`),
-  KEY `Synced` (`Synced`),
-  KEY `ConflictIndex` (`RecordTimestamp`,`UserID`,`DossierNo`)
-) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
+CREATE TABLE `W_SyncBusinessDataLog` (
+  `SyncID` int(11) unsigned NOT NULL auto_increment,
+  `Synced` tinyint(1) unsigned NOT NULL default '0',
+  `RecordTimestamp` int(10) unsigned NOT NULL,
+  `Action` enum('insert','delete') NOT NULL,
+  `UserID` int(11) unsigned NOT NULL,
+  `DossierNo` int(8) unsigned zerofill NOT NULL,
+  `SubDossierNo` smallint(4) unsigned zerofill NOT NULL,
+  PRIMARY KEY  (`SyncID`),
+  KEY `Synced` (`Synced`),
+  KEY `ConflictIndex` (`RecordTimestamp`,`UserID`,`DossierNo`)
+) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
+
+-- 
+-- Table structure for table `W_CountryLog`
+-- 
+
+CREATE TABLE `W_CountryLog` (
+  `Country` varchar(3) NOT NULL,
+  `Count` int(11) NOT NULL,
+  PRIMARY KEY  (`Country`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
