Index: trunk/ippToPsps/jython/scratchdb.py
===================================================================
--- trunk/ippToPsps/jython/scratchdb.py	(revision 33355)
+++ trunk/ippToPsps/jython/scratchdb.py	(revision 33432)
@@ -318,9 +318,10 @@
 
     '''
-    Checks whether DVO files we have ingested are form the DVO path provided
+    Checks whether DVO files we have ingested are from the DVO path provided
+    Does this by checking the original path of the SkyTable.fits file
     '''
     def isCorrectDvo(self, path):
 
-        sql = "SELECT path FROM " + self.dvoDoneTable + " where path LIKE '%Images.dat'"
+        sql = "SELECT path FROM " + self.dvoDoneTable + " WHERE path LIKE '%SkyTable.fits'"
         try:
             rs = self.executeQuery(sql)  
