my $query = $DBH->prepare(q{INSERT INTO raids (tick,waves,message) VALUES(?,?,'')});
if ($query->execute(param('tick'),param('waves'))){
$raid = $DBH->last_insert_id(undef,undef,undef,undef,"raids_id_seq");
my $query = $DBH->prepare(q{INSERT INTO raids (tick,waves,message) VALUES(?,?,'')});
if ($query->execute(param('tick'),param('waves'))){
$raid = $DBH->last_insert_id(undef,undef,undef,undef,"raids_id_seq");