fixed MC issue and fixed lack of qdb writing in tdb qdb pass back
Merge pull request #99 from RAlmada/master

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