minor fixes
mnesia
fixed tests
added index