initialize array to avoid PHP warning
update logging indexes sql to include activity tables