1. Method "kDBEventHandler::UseTempTables" wasn't getting actual main item's special when temp handler were deleting subitems.
2. Fixed bug in previous fix of JSONHelper class: strings were enclosed with single quotes, but single quotes were not escaped in string content.