persisting mongo data