replaced insert with save func in mongo class