make AccountType an enum instead of entity