Index: trunk/ippScripts/scripts/register_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/register_imfile.pl	(revision 17897)
+++ trunk/ippScripts/scripts/register_imfile.pl	(revision 17927)
@@ -128,4 +128,5 @@
     # extract the data from the image header; -level is used to get FILE.LEVEL and CLASS.ID
     my $command = "$ppStats $uri -recipe PPSTATS $RECIPE -level"; # Command to run ppStats
+    $command .= " -dbname $dbname" if defined $dbname;
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         cache_run(command => $command, verbose => $verbose);
