Better way of grabbing source database name if present