Function to update a user's data in the database.
The ID of the user to be updated
The payload containing user data to be updated
Function to update a user's data in the database.