db debug and source code profiling