Index: trunk/ippToPsps/jython/batch.py
===================================================================
--- trunk/ippToPsps/jython/batch.py	(revision 38987)
+++ trunk/ippToPsps/jython/batch.py	(revision 38990)
@@ -452,4 +452,21 @@
     Accepts a regular expression filter so not all tables need to be imported
     '''
+    def importIppTables(self, columns="*", filter=""):
+        if self.useOhanaMYSQLtoFITS:
+            if not self.importIppTablesOhana():
+                self.logger.errorPair("problem running", "importIppTablesOhana")
+                return False
+        else:
+            if not self.importIppTablesStilts(columns, filter):
+                self.logger.errorPair("problem running", "importIppTablesStilts")
+                return False
+
+        return True
+
+    '''
+    Imports IPP tables from FITS file
+
+    Accepts a regular expression filter so not all tables need to be imported
+    '''
     def importIppTablesOhana(self):
         
@@ -463,5 +480,5 @@
             return False
 
-        loadFITStoMYSQL(self.fits.getPath(), "none")
+        self.scratchDb.loadFITStoMYSQL(self.fits.getPath(), "none")
 
         ## may need to do this with direct sql:
@@ -496,5 +513,5 @@
     Accepts a regular expression filter so not all tables need to be imported
     '''
-    def importIppTables(self, columns="*", filter=""):
+    def importIppTablesStilts(self, columns="*", filter=""):
         
         self.logger.infoPair("Importing tables with filter", filter)
