Converted TrackDAO to use more generalized query syntax