Modelled periodic events by SQL function
Update dia db overviev functions explained