fixed getTableByName, getAppByName