Use request.args instead of manually parsing query string