Using MongoDB instead of flat files for data storage