DatabaseExtension: fixed back compatibility for prefixes