Basic search engine using MongoDB