using mnesia instead of ets