avoid spare code - handle extra database config options in one loop

This code change avoids the extra loop and when $Param{$_} is set, the call of the Get method of the ConfigObject is not necessary.