added indexes for logs and aggregates