When serializing results to DB, insert a new OqJob entry if necessary.
When serializing results to DB, insert a new OqJob entry if necessary.


Former-commit-id: d70268cbd3c252d3d8872967a26dc72ce8538dd5 [formerly d70268cbd3c252d3d8872967a26dc72ce8538dd5 [formerly f78216fd1da63c52b98292edd2bd8aed24d2bce6]]
Former-commit-id: 2562c52a894e90e595a6927c739cc0be92027db8
Former-commit-id: 91d01d2df77c865bdba3056646846060314c41ce
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine