merging mongodb related updates