Added function for updating user's preferences.
Saving and retrieval of votes now working.