[3.8] Refactor report

Add new table log_colls, replace concat(position()) by INNER JOIN, Add patch to populate log_colls table