Fix for DBReferences

Simplified how to make a reference and fixed the process