# select _id,json->'received',time,to_timestamp((json->>'received')::int8/1000) - interval '1 hour' from nodelog ;
my $dbh = DBI->connect("dbi:Pg:dbname=eg5120", "dpavlin", "", { RaiseError => 1 });
+warn "# truncate table nodelog";
$dbh->do( qq{ truncate table nodelog } ); # FIXME
my $sth = $dbh->prepare(qq{insert into nodelog (time,json) values (?,?)});