have all maintenance steps run inside one transaction
have import_nicks() and link_nicks() make use of transactions