The token_ranges table name can now be changed.
Reinstated re-queuing ranges when there is an error getting the keys