fix db logic issue

was counting historic blocks, now counting blocks in blocklist