Added some clarifying comments to the code.
Added dbTable field to JSON string, added more comments to code.