added aggregation by pid
TODO
solve the data loss problem in Mongo
UI design and Data mining