UCBG-266: updated custom sql script