Index: trunk/ippToPsps/jython/detectionbatch.py
===================================================================
--- trunk/ippToPsps/jython/detectionbatch.py	(revision 38791)
+++ trunk/ippToPsps/jython/detectionbatch.py	(revision 38794)
@@ -198,4 +198,7 @@
         psfFwhm = 0.5*(float(psfFwhmMajor) + float(psfFwhmMinor))
 
+        psfmodel_name = self.getKeyValue(header, 'PSFMODEL')
+        psfmodelID    = self.scratchDb.getFitModelID(psfmodel_name)
+
         ast_cdx = self.getKeyFloat(header, "%.8f",'AST_CDX')
         ast_cdy = self.getKeyFloat(header, "%.8f",'AST_CDY')
@@ -219,4 +222,5 @@
         sqlLine.group("nx",               self.getKeyInt(header, 0, 'CNAXIS1'))
         sqlLine.group("ny",               self.getKeyInt(header, 0, 'CNAXIS2'))
+        sqlLine.group("psfModelID"        psfmodelID)
         sqlLine.group("psfFwhm",          str(psfFwhm))
         sqlLine.group("psfWidMajor",      psfFwhmMajor)
