#!/usr/bin/perl
#
use DBI;
use Compress::Zlib;
my $dbh = DBI->connect('DBI:mysql:tracker', 'root', 'root');
my $ins = $dbh->prepare ('insert into torrents (torrent) values (?)');
$dbh->do("truncate torrents;");
$dbh->do("truncate files;");
$dbh->do("truncate scrapes;");
$f = "x.tor";
open (TOR, $f);
read (TOR, $cont, (-s $f));
close (TOR);
$ins->execute($cont);