modified to stop logging sql statement