modified sql3 for production