fixed writing of trackDb.. again