tracks_query should ignore pregap and data tracks

I think this is all that needs fixing? I'm not sure how to set this up and test it.

There's also a mention of data tracks on line 49 of the original file, so apparently they're already handled somehow there, but I don't understand the code well enough to know what it's doing or if anything needs changing.