Add filtering by date
Add paginateBy to the query and base for drawing charts