Fixes for sql

Make these more "stand-alone" commands.
* fix minor syntax issues.
Add "accuracy" to tracking; count utf8 char

* update position db scheme (along with patch file)
* update smoke test to pass fake accuracy (and adjust wiggle space)
* use utf8 rune counter for lock strings