db integation part1