add the user role to the db and realize the function