DAO class  updated
Adding Junit test cases