Patch 2039

allow password reset links to work if there is a second database on the server