public function __construct($symb, $exch, $date)
 {
     // setup the the parent class (db connection etc)
     parent::__construct($symb, $exch);
     // load the info from the stocks table
     $query = "select * from quotes where symb = '{$symb}' and exch = '{$exch}' and date = '{$date}';";
     try {
         $result = $this->dbh->query($query);
     } catch (PDOException $e) {
         tr_warn('quote:__construct:' . $query . ':' . $e->getMessage());
         die("[FATAL]Class: quote, function: __construct\n");
     }
     $row = $result->fetch(PDO::FETCH_ASSOC);
     if (isset($row['symb']) and $row['symb'] == $symb) {
         $this->open = $row['open'];
         $this->high = $row['high'];
         $this->low = $row['low'];
         $this->close = $row['close'];
         $this->volume = $row['volume'];
     }
 }