Implemented dao for userdetails