Adapter Connections and Two Similar Source

Hi,

I have following scenario:

We have an Integration Developed using JDBC 6.x. This integration publishes a document to the Broker.

Now, we need one additional exactly similar integration, which will connect to a different database, and publish exactly same document.

The second database is going to follow exact same data model as the first one.

what would be best practices to use the first code and create replica of it, to make it connect to second one?

Is there any other better way?