fixed MC issue and fixed lack of qdb writing in tdb qdb pass back