working on event draw to monthtemplate from database