Updated collector to only insert the required properties into mongodb