Fixed invalid JSON being sent to the database
Added Data attributes for selecting values
Added saving on each click on a value