Basic naive SQL search for Domains, Aliases and Mailboxes.
Fixed flaw in search unit test.