Added new function to execute queries from file