implemented dal, added test classes for dal and models