Add MongoDB query script