setting and getting user from db