Replace SC_Query->query to DB->executeQuery