added database domain logic