more log fixes, sai log sql fixes, dbd sql
saimod_sys_log new layout, more info
some more sql