Function to save user settings to the database. TODO: add an error to the promise if the request fails
The payload containing user ID and settings to be saved
Function to save user settings to the database. TODO: add an error to the promise if the request fails