insert extracted data into mongodb