Class-based account type in database