Database switch