Support switching between databases