Querying documents works (not yet done with formatting the results)