mongo shell - useful functions