Update query_helper.rb