Hello there
I also went through the same problem some months ago. Unfortunately, I couldn't find any practical use for the functions provided by the Database component :/ In the end, I only use the Database for the ME Export Bus driver.
Using the label could work, but I personally concatenate the name with the damage value in order to have a unique name.
If your modpack has Thermal Foundation or Tinkers' Construct, keep in mind that those mods also store their blocks with the same name but different damage value.
Hope that helped