added uniqueness constraints to the triples and nodes tables