Optimize SQL query composition
Convert a unit test to manual
base_uint cleanups:
* Remove unused and broken reverse iterators
* Use charUnHex to reduce code duplication