Database profiler implementation