fixes bug 933021 - "division by zero" in database on the hit statistics (take 2)