Can't be done with queries because the information is serialized. However, I did a small script for you.
Save this as "updateCensor.php" on your XenForo installation, then open
http://yoursite.com/updateCensor.php
Also, change the word list (from Ugly to Fantastic in the example) to the list that you want to use
Code:
<?php
$censor = <<<HERE
Ugly
Terrible
Words
Nasty
Fantasstic
HERE;
####################################################################################################
# Do not change anything below this
####################################################################################################
$words = trim($censor);
$words = preg_split("#[\r\n]+#", $words);
sort($words);
$data = array();
foreach ($words as $w)
{
$data['exact'][$w] = strlen($w);
}
$startTime = microtime(true);
$fileDir = dirname(__FILE__);
require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');
XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);
$db = XenForo_Application::getDb();
$db->query("UPDATE xf_option SET option_value = ? WHERE option_id='censorWords'", serialize($data));
print "Done";