Send query data
Querying the mongodb database based on year