Implement DAL, move resource