code: function quote(s) {
      if (typeof(s) === 'string') {
          return "'" + s.replace(/'/g, "''") + "'";
      } else if (s instanceof Array) {
          return _.map(s, quote).join(', ');
      }
  
      return s;
  }
docs: escape all single-quotes on strings...