fix minor bug in `update_stats()`
zero out known anomalous tip
optimize DB check

Total runtime: 52570.561 ms → 118.837 ms