I have used single method of changing the database connection. We have table for the connection string that will use to the specific database. Heres the example