Merge two rt databases

Hi!

I have two RT’s running. Now I want to simplify it merging the
databases in just one, so I can use only one RT with the whole data
merged.
I think that the only way to do that is write a PERL script that
selects inserts the data between the databases keeping the old
IDs…etc…
Had Somebody did that already or have high knowledge to help me doing
this?
Thanks very much!

rubenromao