updating the mongo schema factory