limit and sort chat messages in mongo
listen for output