public function __construct($debug = false)
 {
     $this->DEBUG = $debug ? $debug : $this->DEBUG;
     $this->config = Config::getInstance();
     if (is_null(self::$pdo)) {
         self::$pdo = $this->connect();
     }
 }