add pg hook to SQL mode, indentation