It would be nice if

/opt/rt3/sbin/rt-setup-database --action insert --datafile=foo

Could be made so that it is idempotent - a check for
ScripActions/Templates etc being inserted having the same name as existing
objects for instance.

Not so bad for templates since deleting them is easy via the web
interface, but deleteing duplicate ScripActions takes a little more
sleeves-up tinkering.