moving query strings to separate file