Fix pg commands