DatabaseLog.cpp: fix coding error
change loop condition to while(isRunning || !CaseQueue->empty())