Mongo: added aggragate helper instance method to take care of pymongo version differencies
Mongo: added aggragate helper instance method to take care of pymongo version differencies

- pymongo <= 2.7 collection aggregate method returns Cursor or CommandCursor
- pymongo >= 3.0 collection aggregate method returns just CommandCursor

https://api.mongodb.org/python/current/api/pymongo/collection.html#pymongo.collection.Collection.aggregate

muatik/flask-profiler