Add MongoDB query feature to the p2 category