Replace SC_Query with DB at class Model\Setting\MasterData.
Replace SC_Query with DB at class Model\Setting\Member.
Replace SC_Query with DB at class Model\Setting\Payment.
Replace SC_Query with DB at class Model\Setting\Plugin.
Replace SC_Query with DB at class Model\Setting\Session.