Add token pruning for the mysql db