Add very basic query logging