make medium use a label as identifier

this commit uses the backends label from NOTIFICATION_BACKENDS setting
for easier to rearrange backends

for upgrades, you may have to write a custom alter statement to turn integers into varchars and then change the labels in your NOTIFICATION_BACKENDS to the string equivalent of the order