How do you transfer a programs database to another device I am using the Book Catalog program to scan and enter my collection of books.

This program provides an export/backup and import feature, so I can transfer the entered data onto another device.

But I am wondering now: programs can create databases on one device. Can you transfer these database onto another device ?

More specific, could I buy another Samsung Galaxy (or any other Android powered device) and transfer the database onto it for use with the same program (without the export/import feature ) ?
This only applies if you have root access, as Bryan already pointed out in the comments.

I would suggest using a utility such as TitaniumBackup to completely back-up all your applications and your data. It will be stored on your SD card so that you can transfer its files to another device and restore the backups on there.