change authdb interface to accept a domain parameter