Database redesign