enabling db logging