A data access layer (DAL) is the part of a software application that handles all reading from and writing to its databases or other storage. The rest of the program, often called the business logic layer, asks the DAL for records such as "this customer's accounts" and does not need to know which database is used, how tables are laid out or how queries are written. A DAL is usually one tier in a layered software stack, alongside the user interface and business logic.
Keeping data access in one place makes systems easier to maintain: a database can be changed or tuned without rewriting the rest of the code, and rules on validation, caching and security can be applied consistently. In finance, core banking systems, payment platforms and ledger services typically use a DAL to control access to account data, and a well-designed one helps stop malicious database queries reaching sensitive records through an API gateway.
Ref 1300000293