Is there a particular reason hooks are not called when the underlying driver returns an error? I can't quite think of a use case for statistics, but I can imagine logging all database interactions.