switchToNewDatabase
Simulates the active-DB switch that happens when the app selects a different device — the new DB has no rows, so any cache that lived only in the previous DB is gone. Closes the prior DB to free its resources.