redesign the database