changed route for sql querying