Extra db logging