Data access layer defined