change ets to mnesia, support cluster.