code: function clearDefaultValue(string) {
      // Does not support SQL functions. IMHO it is better to handle sql function default values in RDMS.
      var defaultValue = undefined, lowercaseString, booleanValue;
      if (string.charAt(0) === "'" || string.charAt(0) === '"') {
          string = string.substring(1, string.length - 1);
          defaultValue = string.replace(/''/g, "'");
      } else {
          lowercaseString = string.toLowerCase()
          booleanValue = (lowercaseString === 'true');
          if (booleanValue || lowercaseString === 'false') {
              defaultValue = booleanValue;
          }
      }
      return defaultValue;
  }
docs: Clears SQL type escapes (Two quote '' to one quote ') and strips beginning and trailing quotes around string.
  @private
  @param {string} string - Default
  @returns {string|boolean|undefined}
  @example
  var clear = clearDefaultValue("'No ''value'' given'");
  console.log(clear);    // No value 'given'