add sql detection for pg server