added a better cli boilerplate, and a query for Mongo