Don't try to EXPLAIN select_db calls

Now with a non-broken test.
Merge pull request #10571 from dasch/dasch/restore-explain-fix

Don't try to EXPLAIN select_db calls