updating class Domains to contain update delete and search functions