sophia: introduce database profiler