Index: trunk/ippToPsps/jython/batch.py
===================================================================
--- trunk/ippToPsps/jython/batch.py	(revision 38995)
+++ trunk/ippToPsps/jython/batch.py	(revision 38999)
@@ -466,6 +466,4 @@
     '''
     Imports IPP tables from FITS file
-
-    Accepts a regular expression filter so not all tables need to be imported
     '''
     def importIppTablesOhana(self):
@@ -473,21 +471,24 @@
         self.logger.infoPair("Importing IPP tables", "using fits_to_mysql")
 
+        count = 0
+        self.tablesLoaded = []
+
+        fileName = self.fits.getPath()
+
+        # this option is equivalent to the stilts "addcol table_index $0" call
+        fitsOptions  = " -sequence-column table_index"
+        fitsOptions += " -sequence-column-start 1"
+
+        ## *** actually write the FITS data to mysql
+        self.scratchDb.loadFITStoMYSQL(fileName, fitsOptions)
+
         ## use stilts to get a list of the tables from the header
         try:
-            tables = stilts.treads(self.fits.getPath())
+            tables = stilts.treads(fileName)
         except:
-            self.logger.errorPair("STILTS could not import from", self.fits.getPath())
-            return False
-
-        self.scratchDb.loadFITStoMYSQL(self.fits.getPath())
-
-        ## may need to do this with direct sql:
-        # table = stilts.tpipe(table, cmd='addcol table_index $0')
-
-        self.tablesLoaded = []
-
-        count = 0
+            self.logger.errorPair("STILTS could not import from", fileName)
+            return False
+
         for table in tables:
-
             # example of listing all columns in a table:
             ## print "-----table: " + table.name
