Add database graph tracing