Index: trunk/ippToPsps/jython/ipptopspsdb.py
===================================================================
--- trunk/ippToPsps/jython/ipptopspsdb.py	(revision 33784)
+++ trunk/ippToPsps/jython/ipptopspsdb.py	(revision 33785)
@@ -1272,5 +1272,4 @@
 
         self.execute("CREATE TEMPORARY TABLE all_pending (stage_id bigint(20), ra_bore float, dec_bore float)")
-        count = 0
         for row in rows:
 
@@ -1279,8 +1278,8 @@
                        VALUES (%d, %f, %f)" % (row[0], row[1], row[2]) 
                 self.execute(sql)
-                count += 1
             except: continue
 
-        self.logger.infoPair("All items written to Db", "%d" % count)
+        count = self.getRowCount("all_pending")
+        self.logger.infoPair("Items written to Db", "%d" % count)
 
     '''
