nel ciclo sulla query crei un array di stringhe divise per mesi e poi cicli l'array e stampi.