added query profiling in backend