added all types of logs to addLog in database