updated code to userdao,
minor changes to method names