PIM-3318: clean ORM filters and fix Mongo specs

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | N
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | runnning
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | -
| Fixed tickets        | -
| DB schema updated?   | N
| Migration script?    | -
| Doc PR               | -