fixes #2801 - remove LOWER() in default_scope of models that could cause PG error

Do not merge until after PR #801 is merged