[SD-820] Fixed the mongodb record overwrite problem