title: Querying mongoDB using the mlab data API
body: <p>im trying to extract a single document through a manually coded variable.
  So here I am trying to find a document with the fields <code>name=siteName</code>. </p>
  
  <pre><code>    String baseUrl = String.format("https://api.mlab.com/api/1/databases/%s/collections/%s?q=",DB_NAME,COLLECTION_SITE_NAME );
      StringBuilder stringBuilder = new StringBuilder(baseUrl);
      try {
      String first = URLEncoder.encode("{","UTF-8");
      String second = URLEncoder.encode("}","UTF-8");
      String point = URLEncoder.encode(":","UTF-8");
      String URL = first+"\"name\""+point+siteName+second;
      stringBuilder.append(URL);
  stringBuilder.append("&amp;apiKey="+API_KEY);
      } catch (UnsupportedEncodingException e) {
          e.printStackTrace();
      }
      return stringBuilder.toString();
  }
  </code></pre>