using mongo to store data