Added profileDao and test cases