while (my ($id,$coords,$metal,$crystal,$eonium,$seccents,$dists,$lastcovop,$user,$max) = $query->fetchrow){
push @targets,{Username => $user, Target => $id, Coords => $coords
, Metal => $metal, Crystal => $crystal, Eonium => $eonium, SecCents => $seccents
while (my ($id,$coords,$metal,$crystal,$eonium,$seccents,$dists,$lastcovop,$user,$max) = $query->fetchrow){
push @targets,{Username => $user, Target => $id, Coords => $coords
, Metal => $metal, Crystal => $crystal, Eonium => $eonium, SecCents => $seccents