added input to mongo