Added begin/end statments to the sql to make it insert faster