feature #2743: Split logic to deal with local and shared table DB versions.