IIRC there are two aspects here.
One is the config of the URD daemon process, which reads config.php to listen to a certain port. You've to manually edit that file.
Two is the port the web interface listens to, that can be configured in the webinterface (configuration).
AFAIK there is no need to dig into SQL.
I have it working, it's fine to have two web interfaces on port 80, just different URL (apache does the talking here). Only problem was the port 11666, and setting is stored in the database. It just needs an entry in the config sheet so one doesn't have to reinstall or manually edit the DB if one decides to edit the data.
tcp 0 0 127.0.0.1:22666 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:11666 0.0.0.0:* LISTEN