Added instrumentation to many database access routines