Utilities for the mongo shell