[postgres] Added SQL sanitization when not using prepared or parameterized queries