added save user input to MongoDB