Loosely matching rhymes for hierarchical database