Refactoring the way multi DB works.