Openfire Server Settings

I’m looking to move all the settings from one openfire server to another. The first(originating) server has the onboard database and the new(destination) server is pointing to an external MySQL DB. Also, just to confirm, all the console custom settings (chat room settings, Active Directory settings and system properties) are stored in the DB or some sort of xml or config file?

Thanks in advance!