sql build scripot.