db restructured