fix #2039 allow password reset links to work when more than one database on server or in db-filter