Created class to execute aggregate on mongodb