title: Python Mongodb simple query
body: <p>I am new to python and mongo db, i have a dict called data and i wanna use the keys to query the database called db.</p>
  
  <pre><code>def update_db(data, db):
  for key in data:
      x=db.find({'label':key})
      for a in x:
          print a
  </code></pre>
  
  <p>I get the error message that find() does not exist.</p>
  
  <p>Anyone can give me input on my problem ?</p>