Made JSON parsing into its own class. Also renamed parseJSON.php to WarhornJSONParser.php which is the name of the newly created Class. Created a main.php which will stitch together all the parts to make this work.
Ranamed the method warhornParseJSON to parseJSON since it is already in the WarhornJSONParser class. Fixed main.php so that it now stores the returned value of parseJSON for passing to the DB function.