Restructuring database finished