modified sql connector