performance fix

performance fix for some SQL queries where dataset was limited to
current month:

OLD date condition:
date_format(beginProductionTime, '%Y%m') = '${year}${month}'
//NEW (otpimized) date condition:
beginProductionTime BETWEEN '${year}-${month}-01' AND
LAST_DAY('${year}-${month}-01')