Changed DAL functions

Moved DAL related functions to DataAccessLayer assembly