Index: branches/eam_branches/ipp-20120905/ippTools/share/bgtool_towarp.sql
===================================================================
--- branches/eam_branches/ipp-20120905/ippTools/share/bgtool_towarp.sql	(revision 34575)
+++ branches/eam_branches/ipp-20120905/ippTools/share/bgtool_towarp.sql	(revision 34735)
@@ -1,3 +1,3 @@
-SELECT
+SELECT DISTINCT
     warpBackgroundRun.*,
     warpRun.tess_id,
Index: branches/eam_branches/ipp-20120905/ippTools/share/magicdstool_torevert_camera.sql
===================================================================
--- branches/eam_branches/ipp-20120905/ippTools/share/magicdstool_torevert_camera.sql	(revision 34575)
+++ branches/eam_branches/ipp-20120905/ippTools/share/magicdstool_torevert_camera.sql	(revision 34735)
@@ -23,4 +23,6 @@
     JOIN rawExp using(exp_id)
 WHERE magicDSRun.stage = 'camera'
+    AND camProcessedExp.fault = 0
+    AND camRun.state = 'full'
     AND ((magicDSRun.state = 'new' AND magicDSFile.fault > 0)
          OR ((magicDSRun.state = 'goto_censored' OR magicDSRun.state = 'goto_restored')
Index: branches/eam_branches/ipp-20120905/ippTools/share/staticskytool_result.sql
===================================================================
--- branches/eam_branches/ipp-20120905/ippTools/share/staticskytool_result.sql	(revision 34575)
+++ branches/eam_branches/ipp-20120905/ippTools/share/staticskytool_result.sql	(revision 34735)
@@ -7,4 +7,7 @@
     stackRun.skycell_id,
     count(stackRun.filter) AS num_filters,
+    TRUNCATE(skycell.radeg/15., 4) AS rahours,
+    skycell.radeg,
+    skycell.decdeg,
     skycell.glong,
     skycell.glat
Index: branches/eam_branches/ipp-20120905/ippTools/share/staticskytool_todo.sql
===================================================================
--- branches/eam_branches/ipp-20120905/ippTools/share/staticskytool_todo.sql	(revision 34575)
+++ branches/eam_branches/ipp-20120905/ippTools/share/staticskytool_todo.sql	(revision 34735)
@@ -7,8 +7,14 @@
     stackRun.tess_id,
     stackRun.skycell_id,
+    TRUNCATE(skycell.radeg/15., 4) as rahours,
+    skycell.radeg,
+    skycell.decdeg,
+    skycell.glong,
+    skycell.glat,
     IFNULL(Label.priority, 10000) AS priority
 FROM staticskyRun
 JOIN staticskyInput USING (sky_id)
 JOIN stackRun USING (stack_id)
+JOIN skycell USING(tess_id, skycell_id)
 LEFT JOIN staticskyResult USING(sky_id)
 LEFT JOIN Label ON staticskyRun.label = Label.label
