fixed database log