Fix pager for db_select queries