refactor mysql dir
mysql status counters + refactoring nc