<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def SetConfigValue(self, fieldName, value):
 """ Set value in Config table. If a entry already exists this is updated with the new value, otherwise a new entry is added. Parameters fieldName : string String to be inserted or matched against Name column in Config table. value : string Entry to be inserted or updated in Value column of Config table. """

    currentConfigValue = self.GetConfigValue(fieldName)

    if currentConfigValue is None:
      goodlogging.Log.Info("DB", "Adding {0}={1} to database config table".format(fieldName, value), verbosity=self.logVerbosity)
      self._ActionDatabase("INSERT INTO Config VALUES (?,?)", (fieldName, value))
    else:
      goodlogging.Log.Info("DB", "Updating {0} in database config table from {1} to {2}".format(fieldName, currentConfigValue, value), verbosity=self.logVerbosity)
      self._ActionDatabase("UPDATE Config SET Value=? WHERE Name=?", (value, fieldName))