DAL class and changes in model

DAL class is used to create database context.