changed query to get last 2 years