Convert GET query strings into ActiveRecord queries