Astdb blacklist and while()

I currently have an AstDB blacklist which I have loaded via the CLI. I know how to write a dialplan which can add and remove a single phone number from the database. What I would like to do is have a way using while() to list all of the numbers in the database so a person could know what numbers are so they might be able to know which number they might want to remove. The code should be something like:

playback(the_stored_blacklist_numbers_are) while((number = read blacklist database) != end_of_database) saydigit(${number}) endwhile()