updated all function related mongo conn and token.msv