fixed letter comparison for postgres, had different behavior than sqlite