Simple circular buffer with persistent data storage based on mnesia.