Would a call to $db->quote($name) be better here than a straight addslashes() call?