These columns are integer columns, you can do maths with them regardless of the DBMS (default switch case). The workaround in set_config_count() is required because these values are stored in a varchar column.