mongodb persisting items