Index: trunk/ippScripts/scripts/addstar_run.pl
===================================================================
--- trunk/ippScripts/scripts/addstar_run.pl	(revision 38941)
+++ trunk/ippScripts/scripts/addstar_run.pl	(revision 38943)
@@ -70,5 +70,5 @@
 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
 pod2usage(
-          -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage",
+          -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname",
           -exitval => 3,
           ) unless
@@ -78,4 +78,5 @@
     defined $stageroot and
     defined $dvodb and
+    defined $dbname and
     defined $camera;
 if ($stage =~ /cam/ && !defined $stage_id) {
@@ -309,5 +310,5 @@
     
     unless ($no_op) {
-            print $dvodbReal;
+            print "$dvodbReal\n";
 	    ## addstar can either save the full set of detections, or just
 	    ## the image metadata, in the dvodb.  this is set in the
@@ -338,4 +339,5 @@
 
 	    if ($stage ne 'fullforce_summary') {
+#		print "IN ADDSTAR VERSION\n";
 		# require a defined output dvo database to run addstar (ie, refuse to use the .ptolemyrc default)
 		$command  = "$addstar -update"; # XXX optionally set -update?
@@ -360,4 +362,5 @@
 	    }
 	    else { # Full force summary case
+#		print "IN LOADGALPHOT VERSION\n";
 		# We need to know the filter to set up the photcode, as the summaries do not include that in the header.
 		# We /could/ set up the addtool stuff to pass that in to the script when needed, but that would require adding 
@@ -368,6 +371,7 @@
 		{
 		    my $ff_command = "$fftool -dbname ${dbname} -summary -ff_id ${stage_id}";
+		    print "$ff_command\n";
 		    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
-			run(command => $command, verbose => $verbose);
+			run(command => $ff_command, verbose => $verbose);
 		    unless ($success) {
 			$error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Index: trunk/ippTasks/addstar.pro
===================================================================
--- trunk/ippTasks/addstar.pro	(revision 38941)
+++ trunk/ippTasks/addstar.pro	(revision 38943)
@@ -85,4 +85,7 @@
     active false
   end
+  task addstar.revert.fullforce_summary
+    active false
+  end
 end
 
@@ -104,4 +107,7 @@
   end
   task addstar.revert.fullforce
+    active true
+  end
+  task addstar.revert.fullforce_summary
     active true
   end
@@ -484,5 +490,5 @@
     if ("$STAGE" == "fullforce_summary")
     # This shouldn't need a stage_extra1, as there are no subcomponents to the ff summary.
-      $run = $run --stage_id
+      $run = $run --stage_id $STAGE_ID
     end
 
Index: trunk/ippTools/share/addtool_queue_ffsummary.sql
===================================================================
--- trunk/ippTools/share/addtool_queue_ffsummary.sql	(revision 38941)
+++ trunk/ippTools/share/addtool_queue_ffsummary.sql	(revision 38943)
@@ -4,5 +4,5 @@
         'fullforce_summary',		-- stage
         ff_id,         -- stage_id
-        0,	       -- stage_extra1
+        %d,	       -- stage_extra1
         '%s',           -- state
         '%s',           -- workdir
Index: trunk/ippTools/src/pxadd.c
===================================================================
--- trunk/ippTools/src/pxadd.c	(revision 38941)
+++ trunk/ippTools/src/pxadd.c	(revision 38943)
@@ -171,4 +171,8 @@
 	query = pxDataGet("addtool_queue_ff_id.sql");
         psMemSetPersistent(query, true);
+      }
+      else if (strcmp(stage,"fullforce_summary") == 0) {
+	query = pxDataGet("addtool_queue_ffsummary.sql");
+	psMemSetPersistent(query,true);
       }
 
