Added functions for userdao