Changed table query from mapreduce to aggregation pipeline
Moved dict query to another file
Added frequency