Really stupid looping over all of our trails.
This is not efficient, but it gets the job done for now.
Also, let's escape sql statements that are being fed into OGR.
Added sample output to README.