Search Functionality

@houndci 
what if you assigned this first? then you could reuse it on lines 3 & 4 instead of `params[:query]`