finding data in mongo db, handling cursor object