! error count total was being doubled, just use the value of the last key returned
! extra $db =

Signed-off-by: Spuds <spuds@spudsdesign.com>