New MySQL query for Attacks by Year

This is an improved MySQL query that should improve the perfomance of
GetAttacksByYear in Project.java