Modify SQL query; add lat long

* SQL query for walk detail now uses (now|here)doc
* Walk detail now shows latitude and longitude of waypoints