add support for ar 4.2 and fix the tests to handle prefixed and suffixed db names