Add indexes to determine if a node or relationship exists.