     VolRetention BIGINT UNSIGNED DEFAULT 0,
     VolUseDuration BIGINT UNSIGNED DEFAULT 0,
     MaxVolJobs INTEGER UNSIGNED DEFAULT 0,
-@@ -256,6 +257,7 @@
+@@ -256,6 +258,7 @@
     MaxVolBytes BIGINT UNSIGNED DEFAULT 0,
     AutoPrune TINYINT DEFAULT 0,
     Recycle TINYINT DEFAULT 0,

 -- Create a table like Job for long term statistics 
-CREATE TABLE JobHistory (LIKE Job);
+CREATE TABLE JobHisto (LIKE Job);
+CREATE INDEX jobhistory_idx ON jobhistory ( starttime );
 
+
 CREATE TABLE Location (

    JobStatus CHAR(1) NOT NULL,
    SchedTime DATETIME NOT NULL,
    StartTime DATETIME DEFAULT 0,
@@ -93,16 +94,16 @@
    VolSessionTime INTEGER UNSIGNED DEFAULT 0,
    JobFiles INTEGER UNSIGNED DEFAULT 0,
    JobBytes BIGINT UNSIGNED DEFAULT 0,
+   ReadBytes BIGINT UNSIGNED DEFAULT 0,
    JobErrors INTEGER UNSIGNED DEFAULT 0,
    JobMissingFiles INTEGER UNSIGNED DEFAULT 0,
-   PoolId INTEGER UNSIGNED REFERENCES Pool DEFAULT 0,
