Updated userSaver functions for mongoDB