store matches in mongodb