Rate limit from database.
TODO:
*qos_mapping: remove id autoincremental
* qos_mapping: check qos_id and port_id before update