[connection] replace .running_dbapi_query with .hooks_in_progress [applied]