calcs/hazard/general:
calcs/hazard/general:

Refactored `finalize_hazard_curves` to use a DB function to handle the
extraction of hazard curve data and insertion of `hazard_curve_data` records.


Former-commit-id: f50770a408f861e70d2d79c5c11c6170df12cc46 [formerly e2932879eb3723eed7595cc13c731f398843964b]
Former-commit-id: 7c97510da1c83de456378bc5ca60a33ca8b281f7
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine