simplify the mongodb command.