edited database model