write new user to db