Fixed issue with restoration of old database.