Add SQL ref.