I have an application which uses four databases in different geographical locations. All the databases contains same tables and only the database name is different according
There are multiple ways you can achieve this:
Design Patterns: