Some utilities for mongoDB and pymongo