Fix query order in filters.
Fix typo in seeds, removed useless function.