update log type
fixed log writing on DB