Do not ever replace dicts from settings.DATABASES.

Since django provides no sane way of removing a connection once
instantiated, each alias is bound to the dict it had at instantiation
time. Therefore, make sure to always use the same dict, modifying it as
necessary.