Function with default arguments and explicitly declared clauses

In this new version, you query all your database, filtering only on dates. It can be fine, it can be a problem.