Small extension to SQL utils