\
The user interacts with the system through the UI. It could be a web application or desktop application.
This layer processes user requests and translates them into database queries. It contains the business logic.
This layer manages the actual database and handles data storage, retrieval, and management.