replace $db  = new WPSchool_DB(); to main wp-school.php file. This "global" variable will be use everywhere
replace $db  = new WPSchool_DB(); to main wp-school.php file. This "global" variable will be use everywhere