added more parameters for db query
db query selection, fields are provided through Ajax post
TODO need to figure out a proper for generating the queries from UI
more felxible operations on the dataset
Check data mining or analysis methods of Mongo