add sql statement mode refs #5642