The data layer is the lowest level layer which contains the logic to access the database. This project consists of a data access layer in the ASP.net application that exposes application programming interface’s (API) to the business layer. These API’s interact with the database by invoking stored procedure calls to the database. The logic to query the XML campus crime files is written in the stored procedures using XQuery. These stored procedures reside in the SQL server database in pre-compiled form as database objects.