Fixed SQL errors generated by DNN EVS SYTEM