Index: /trunk/ippToPsps/jython/stackbatch.py
===================================================================
--- /trunk/ippToPsps/jython/stackbatch.py	(revision 38879)
+++ /trunk/ippToPsps/jython/stackbatch.py	(revision 38880)
@@ -259,4 +259,5 @@
         expTime = self.getKeyFloat(header, "%.8f", 'EXPTIME')
         zp      = self.getKeyFloat(header, "%.8f", 'ZPT_OBS')
+        zpErr   = self.getKeyFloat(header, "%.8f", 'ZPT_ERR')
 
         # XXX zp correction should come from DVO
@@ -287,4 +288,7 @@
         sqlLine.group("astroScat",          astroscat)
         sqlLine.group("photoZero",          zp)
+        sqlLine.group("photoScat",          zpErr)
+        sqlLine.group("nAstroRef",          header['NASTRO'])
+        sqlLine.group("nPhotoRef",          header['NASTRO'])
         sqlLine.group("ctype1",             header['CTYPE1'])  
         sqlLine.group("ctype2",             header['CTYPE2'])  
@@ -307,4 +311,6 @@
             self.logger.error("problem with SQL: " + sql)
             raise
+        
+        self.scratchDb.updateRecalStats(tablename, str(stackID), str(pltscale)) 
 
         self.tablesToExport.append(tablename)
