optimization of SQL to use fiscal year