Add support for block stats from db