Index: trunk/ippScripts/scripts/addstar_multi_run.pl
===================================================================
--- trunk/ippScripts/scripts/addstar_multi_run.pl	(revision 38583)
+++ trunk/ippScripts/scripts/addstar_multi_run.pl	(revision 38584)
@@ -124,7 +124,8 @@
             run(command => $command, verbose => $verbose);
     &my_die( "Unable to get info on addRun", $stage_id,$stage, $label, $PS_EXIT_SYS_ERROR) unless $success;
-    if (scalar @$stdout_buf == 0 ) { #it lists nothing if it is the first
-	&my_die( "empty addRun", $stage_id,$stage,$label, $PS_EXIT_SYS_ERROR);
-	
+    if (scalar @$stdout_buf == 0 ) { 
+	#&my_die( "empty addRun", $stage_id,$stage,$label, $PS_EXIT_SYS_ERROR);
+	print "empty addRun, exiting... $stage,  $stage_id, $label\n";
+	exit 0;
     } else {
             my $metadata = $mdcParser->parse(join "", @$stdout_buf) or
@@ -291,5 +292,5 @@
     carp($msg);
     if (defined $stage_id and not $no_update) {
-        my $command = "$addtool -stage_id $stage_id";
+        my $command = "$addtool -multiadd -stage_id $stage_id";
         $command .= " -addprocessedexp";
         $command .= " -fault $exit_code";
Index: trunk/ippScripts/scripts/minidvodb_createdb.pl
===================================================================
--- trunk/ippScripts/scripts/minidvodb_createdb.pl	(revision 38583)
+++ trunk/ippScripts/scripts/minidvodb_createdb.pl	(revision 38584)
@@ -39,5 +39,5 @@
 }
 
-my (  $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_group, $camera,  $verbose, $no_update,
+my (  $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_nums, $minidvodb_group, $camera,  $verbose, $no_update,
      $no_op, $redirect, $save_temps);
 GetOptions(
@@ -49,4 +49,5 @@
     'minidvodb|w=s'     => \$minidvodb, # output miniDVODB
     'interval|w=s'      => \$minidvodb_interval, #interval between creation of minidvodbs (default = 1day)
+    'num|w=s'      => \$minidvodb_nums, #interval between creation of minidvodbs (default = 500 addRuns)
     'verbose'           => \$verbose,   # Print to stdout
     'no-update'         => \$no_update, # Update the database?
@@ -111,4 +112,7 @@
     $minidvodb_interval = 1;
 }
+if (!defined $minidvodb_nums) {
+    $minidvodb_nums = 500
+}
 
 
@@ -207,5 +211,5 @@
 
 
-    if ($addRun_count > 500) {
+    if ($addRun_count > $minidvodb_nums) {
         #it's too big, create_new
         $create_new = 1;
