save a user to mongodb