(fix) Add matches, and correct functions for mnesia
(fix) Changed the match to return only the env.
(fix) Check to see if ets table exist before creating a new one