Adding db connection failure error catching.