added unique db ref concept