title: Autocomplete uses sql "Like" query, but returns every result
body: <p>My code :</p>
  
  <pre><code>var db = Database.Open("dbase");
  var term = Request.Form["username"] + "%";
  var sql = "SELECT * from Users where Username LIKE @0";
  var result = db.Query(sql, term);
  var data = result.Select(p =&gt; new{label = p.username});
  Json.Write(data, Response.Output);
  </code></pre>
  
  <p>And the form : </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          $(function(){
              $('#username').autocomplete({source:'getProducts'});
          });
      &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form method="post"&gt;
              &lt;label for="username"&gt;Enter Username: &lt;/label&gt;
              &lt;input type="text" name="username" id="username" /&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>The problem : This process is ran every time a user types a character into a text box. No matter what character is typed, every single username in the database is returned. I assume the problem lies in my SQL query ? </p>
  
  <p>Can anyone help me with this ?</p>