Added dao and junit test cases