MongoDB shell custom analytics tools and functions