Adds routes for querying statements.