working with db part1