some implementation of mongo persistence