Logging all sql actions