public function __construct() { if (!self::$db) { self::$db = SafeMySQL::getInstance(); } parent::__construct(); }