Script to connect to mongo and query the database and return JSON or XML results

Replace words in capitals to make script work and setup a MongoDB with a collection of your choice and three documents inside again your choice on the name. One should be where the keywords are held and a id.