collection: add some tracing.
database: add some tracing.