[CLC-1495] Putting logging on an oracle ActiveRecord, some refactoring