Added try catch on parsing the queries as well
Merge pull request #87 from jgilme1/memoryError

Added try catch on parsing the queries as well