Selecting monthly statistics from DB by date.