Rewritted data access layer