update DatabaseLog.
fix bug in queue operation.