protected function logDLStats()
	{
		$q = \Database::getInstance()->prepare("SELECT id FROM `tl_dlstats` WHERE `filename`=?")
                                     ->execute($this->_filename);
		if ($q->next())
		{
			$this->_statId = $q->id;
			\Database::getInstance()->prepare("UPDATE `tl_dlstats` SET `tstamp`=?, `downloads`=`downloads`+1 WHERE `id`=?")
                                    ->execute(time(), $this->_statId);
		}
		else
		{
			$q = \Database::getInstance()->prepare("INSERT IGNORE INTO `tl_dlstats` %s")
                                         ->set(array('tstamp' => time(), 
                                                     'filename' => $this->_filename, 
                                                     'downloads' => 1)
                                              )
                                         ->execute();
			$this->_statId = $q->insertId;
		} // if
		$this->setBlockingIP($this->IP, $this->_filename);
	}