Updated DataWriter class to get email accounts