Bug fix in writeTrackRes in MySQLSvc