Revert "Log all queries for profiling"

This reverts commit 8f753d7378980beedf04595b2623aac0ee9a78ec.