Using the new allowQueries return code.
Cleanup for tabletmanager.