tdb_get_trail_id
to reset each cursor to the UUID, and use the new multi-cursor to conveniently iterate over the full trail corresponding to the user https://github.com/tuulos/traildb/blob/multi-cursor/src/traildb.h#L225
multi-cursors
were just merged to master. They provide a convenient way to stitch together multiple TrailDBs. For more info, see http://traildb.io/docs/api/#join-trails-with-multi-cursors and http://traildb.io/docs/technical_overview/#join-trails-over-multiple-traildbs