Model: fix on empty filter, Db: fix on empty params