store network in mnesia