Refactoring the couple of functions.
The new functions are _myntcd_create_tmptable and _myntcd_process_tabledatas.
These functions are merge more functions.