Iterate over Immutable Cloned Map of jobs for thread safety.

Added db type differentiation for storage engines.