support persistence in MongoDB