Fixed #20474 -- Proxied and deprecated django.db.backend
Delayed settings.DATABASES usage by ConnectionHandler

Refs #20474.
Delayed settings.DATABASE_ROUTERS usage by ConnectionRouter

Refs #20474.