Tidying up the SET commands used in MySQL