Fix discrete attributes with int values in database.