Part2, build database script