Move log entries to cache db