work but slow
slow using group by
done
include migrate sql
Merge branch 'tag' into dev