Allows authenticating with a different database than the one that will finally connect to.