Bugfixing in restore of database: some tables have to be processed first