text: Title: Add client option to log SQL queries
  Body: ## Problem
  
  <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
  
  Performance issues with ORMs can be hard to debug, we should add an option to log generated SQL queries.
  
  ## Suggested solution
  
  <!-- A clear and concise description of what you want to happen. -->
  
  Don't know how this would be implemented as it seems like we'd have to spawn a new thread to capture and then filter the output from the query engine as the query engine logs contain a lot of noise that we don't want to send to users.
      