Fix for a referral to a database

Fix for a referral to a database