now cleans the data and saves it to mongo