add support for db profiling, RT#5662