Improvements in audit of SQL queries

## Context 
The audit of SQL queries feature was generating some logs despite it was desactivated.

## Description
The feature has been refactored to avoid logging anything for a user that is not spied.