fix database log can't use bug