email_account: use db exceptions and parameters