+sub flush { # evil direct SQL
+ my $opt = shift;
+
+ if ( $opt->{'ratecenter'} =~ /^[\w\s]+$/
+ && $opt->{'state'} =~ /^[A-Z][A-Z]$/
+ && $opt->{'exportnum'} =~ /^\d+$/) {
+ my $sth = dbh->prepare('delete from phone_avail where exportnum = ? '.
+ ' and state = ? and name = ?');
+ $sth->execute($opt->{'exportnum'},$opt->{'state'},$opt->{'ratecenter'})
+ or die $sth->errstr;
+ }
+
+ '';
+}
+