title: web2py: Check if record in database?
body: <p>example table:</p>
  
  <pre><code>db.define_table('pet',
      Field('name'),
      Field('owner_id','reference person'),
      Field('location_id','reference location'))
  </code></pre>
  
  <p>1) How can I check if there's a pet, called <code>"Furry"</code>, owned by person <code>15</code> in location <code>26</code>?</p>
  
  <p>2) How can I check if there are any pets of person <code>8</code> in location <code>76</code>? If so, return them.</p>