Basically, pruning is specified by the user, by default, 1 million (in the PR set to 100 for pruning purposes). the pruning for the database is stored inside the db