updated QueryResult logic
added execureFromFile method