One Application with two custom database connections

Hey, I currently have a problem with one Application but with two (custom) database connections. So, suppose I have one application Application A with custom database connections like Database 1 - custom Connection leads to Foreign API 1 Database 2 - custom Connection leads to Foreign API 2 …