added constants for block range and comparison for percentages in db script