Index: /tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_stack.pl
===================================================================
--- /tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_stack.pl	(revision 37195)
+++ /tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_stack.pl	(revision 37196)
@@ -149,5 +149,5 @@
     # This actually returns all the individual stack/skyfiles that comprise this run.  Because consistency.
     my $command = "$stacktool -inputskyfile -stack_id $stack_id ";
-
+    $command .= " -dbname $dbname " if defined($dbname);
     ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
 	run(command => $command, verbose => 0);
