protected function getLastModified($source)
{
$source = sqlite_escape_string($source);
$db = sqlite_open($this->source);
$rs = sqlite_query("SELECT date_modified FROM catalogue WHERE name = '{$source}'", $db);
$result = $rs ? (int) sqlite_fetch_single($rs) : 0;
sqlite_close($db);
return $result;
}