mContacts Plugin is a great plugin for importing/exporting history and contacts to and from your database.
It allows you to move contacts and history from one DB to another, simply and easily.
It is available here: http://www.miranda-im.pl/dev/bankrut/
It is useful for merging history from two databases together.