Implement basic mongo persistence