replace mnesia with leveldb