Fixed execute queries from file issue.
Removed duplicated code
Merge pull request #2 from kalo7791/develop

Fixed execute queries from file issue.