make mongodb insert replaced properties at the beginning of the doc