Cleanup orphaned headername and headervalue records

Improve -t (test for message integrity) switch, seek for and remove orphaned
headername and headervalue records.
Mantis: http://www.dbmail.org/mantis/view.php?id=1008
fix counter during maintenance