Incident #19130 - finished findExisting database function in customer.sql