changing query logging

Signed-off-by: Daniel Berry <danielberrytn@gmail.com>