db integration part 1