db name integrated in document lookup uri, conditional