PHP-functinality for triple storage and manipulation based on originally tabular data