db redesign