Issue #2848821 by voleger, harsha012, vidhatanand, Sharique, alexpott, mondrake: Replace all calls to db_close, which is deprecated