redesign the database level