store records to mongodb, retrive and display