if (stream_resolve_include_path("db" . DS . "connect.php")) {
                        require("db" . DS . "connect.php"); 
                        throw new Exception(__CLASS__." needs a database object");
                        $this->db = $db;
                        $this->destroy = true;