refactored to use scopes in the Movie model for search