chenges in  query for statistics, get tasks by project