Optimize the DB query to use LIKE only when needed
Adjust the runserver script to add profiling information if desired
The subquery should be run once we have all the filters in place -- fixes unit-tests
Merge pull request #98 from fedora-infra/db_optimization

Db optimization