split up sql