use tempfiles instead of sanitized isql bash scripts