title: how to make a like search in postgresql and node js
body: <p>I am using node js and the module pg for connect to postrgresql
  i want to make a search for a database of tags but i can't make it work,
  in the variable tag i saved the param of  the url , but the consult doesn't return any results.
  how can i fix?</p>
  
  <pre><code>app.get("/tags", function(req, res){
          var tag = req.query.q;
          res.json(tag)
          var search = db.client.query("SELECT * FROM tags WHERE name LIKE '%$1%'", [tag], function(err, result){
                  res.json(result);
              }
          );
      });
  </code></pre>