MDL-53547 logstore_database: better DB driver handling in unit test