working on importing sql with variable substitution