Parameter substitution processing: if we detect multiple statements in a query that is not allowed, quit immediately. Also improve readability.