How to connnect to multiple database

I want plugin to connect to other database rather than mautic default database.

How can I achieve it ?

I have modified the app/config/config.php file as below. It does not work.

> $container->loadFromExtension('doctrine', [
>     'dbal' => [
>         'default_connection' => 'default',
>         'connections'=>[
>             'default' => $dbalSettings,
>             'model_a' => $model_a,
> 
>         ]
>     ],
>     'orm'  => [
>         'default_entity_manager' => 'default',
>         'entity_managers' => [
>             'default' => [
>                 'connection' => 'default'
>             ],
>             'model_a' => [
>                 'connection' => 'model_a'
>             ]
>         ]
>     ],
> ]);