aggregate_events = connection_mongo[1] This is a collection of data
This is the function to fetch values from the database and create a Dataframe. #creating a query J