reload the previously selected database after focus has changed.