Mixing `hiera()` queries into the middle of tech modules is actually a kind of anti-pattern. Since the class exposes the `mysql::db` defined resource type as an interface, the controlling profile needing to instantiate specific databases should be responsible for performing the hiera query. See http://www.craigdunn.org/2012/05/239/ for a reference description (though Hiera is only -> profiles).