error in logdb fixed