updated workflow and mongo inserter