Model classe's updateRecord() bug which which prevented SQL functions to execute solved.