made a simple interface for Mnesia DB