Centralize db tracing