- fix trigger copying, make rpmdbid handling nicer