functioning ?query= parameter parsing and execution