some changes to SQL object call