refactor mnesia cluster