Added debuging messages and fixed a bug with mongodb not returning data in some cases when the track was not found