integration with db part 2