added MAINDIR_ID to missingtablemodel.cpp