Add exists an toSql function to the passthru.

Add exists an toSql function to the passthru.