Added better Query Syntax Checking
Updated Executable