now tracks the last sql statement run for easier debugging