Handling of the new database format with logs (the logs are not read yet)