Added time it decorator
UYpdated tasks to use mongo aggregation