Index: trunk/ippTools/share/disttool_pendingcomponent.sql
===================================================================
--- trunk/ippTools/share/disttool_pendingcomponent.sql	(revision 23712)
+++ trunk/ippTools/share/disttool_pendingcomponent.sql	(revision 23717)
@@ -13,4 +13,5 @@
     NULL as state,
     NULL as data_state,
+    0 as quality,
     distRun.no_magic,
     rawImfile.magicked
@@ -60,4 +61,5 @@
     chipRun.state,
     chipProcessedImfile.data_state,
+    0 as quality,
     distRun.no_magic,
     chipProcessedImfile.magicked
@@ -89,4 +91,5 @@
     camRun.state,
     NULL,
+    0 as quality,
     distRun.no_magic,
     chipProcessedImfile.magicked
@@ -120,4 +123,5 @@
     fakeRun.state,
     NULL,
+    0 as quality,
     distRun.no_magic,
     0
@@ -150,4 +154,5 @@
     warpRun.state,
     warpSkyfile.data_state,
+    warpSkyfile.quality,
     distRun.no_magic,
     warpSkyfile.magicked
@@ -184,4 +189,5 @@
     -- diffSkyfile.data_state,
     'full' AS data_state,
+    diffSkyfile.quality,
     distRun.no_magic,
     diffSkyfile.magicked
@@ -215,4 +221,5 @@
     -- stackSumSkyfile.data_state,
     'full' AS data_state,
+    0 as quality,
     1 AS no_magic,
     0 AS magicked
Index: trunk/ippTools/share/disttool_toadvance.sql
===================================================================
--- trunk/ippTools/share/disttool_toadvance.sql	(revision 23712)
+++ trunk/ippTools/share/disttool_toadvance.sql	(revision 23717)
@@ -3,5 +3,6 @@
     stage,
     stage_id,
-    outroot
+    outroot,
+    label
 FROM
     (
@@ -11,5 +12,6 @@
     stage,
     stage_id,
-    outroot
+    outroot,
+    label
     FROM distRun
     JOIN rawImfile ON stage_id = rawImfile.exp_id
@@ -33,5 +35,6 @@
     stage,
     stage_id,
-    outroot
+    outroot,
+    label
     FROM distRun
     JOIN chipProcessedImfile ON stage_id = chipProcessedImfile.chip_id
@@ -55,5 +58,6 @@
     stage,
     stage_id,
-    outroot
+    outroot,
+    label
     FROM distRun
     JOIN warpSkyfile on stage_id = warp_id
@@ -79,5 +83,6 @@
     stage,
     stage_id,
-    outroot
+    outroot,
+    label
     FROM distRun
     JOIN diffSkyfile
@@ -103,5 +108,6 @@
     stage,
     stage_id,
-    outroot
+    outroot,
+    label
     FROM distRun
     JOIN stackSumSkyfile on stage_id = stack_id
