Index: /trunk/ippToPsps/jython/dvo.py
===================================================================
--- /trunk/ippToPsps/jython/dvo.py	(revision 33355)
+++ /trunk/ippToPsps/jython/dvo.py	(revision 33356)
@@ -40,10 +40,4 @@
         self.config = config
 
-        # create database object
-        self.scratchDb = ScratchDb(logger, self.config, 1)
-
-        # or decide if we are using the right DVO
-        self.correctDvo = self.scratchDb.isCorrectDvo(self.config.dvoLocation)
-
         # set up empty lists
         self.regionsToIngest = []
@@ -52,5 +46,19 @@
         self.regionsAlreadyIngested = []
         self.regionsIngestedButOutOfDate = []
-
+        
+        #self.correctDvo = False
+
+
+    '''
+    Sets to scratch database
+    '''
+    def setScratchDb(self, dbName):
+
+        self.scratchDb = ScratchDb(self.logger, self.config, dbName)
+        self.scratchDb.setUseFullTables(True)
+
+        # or decide if we are using the right DVO
+        self.correctDvo = self.scratchDb.isCorrectDvo(self.config.dvoLocation)
+ 
         if not self.correctDvo:
             print "*******************************************************************************"
@@ -61,4 +69,5 @@
                     self.resetAllTables()
 
+
     '''
     Destructor
@@ -101,5 +110,5 @@
         path = self.config.dvoLocation + "/Images.dat"
         if self.scratchDb.alreadyImportedThisDvoTable(path): 
-            self.logger.infoPair("DVO Images.dat file", "up-to-date")
+            self.logger.debugPair("DVO Images.dat file", "up-to-date")
             return
         
@@ -156,5 +165,5 @@
         path =  self.config.dvoLocation + "/SkyTable.fits"
         if self.scratchDb.alreadyImportedThisDvoTable(path): 
-            self.logger.infoPair("DVO SkyTable.fits file", "up-to-date")        
+            self.logger.debugPair("DVO SkyTable.fits file", "up-to-date")        
             return
 
