db: fix updateCounter

save to history both passed and failed
dont use default in this case