Add filter and group_by options.
Fix bug when using DB::expr().