* Add indexes to resources and friends. Its function, given two node id, look up edge (relationship)
* Implented a function that takes two nodes and a key value pair and return a edge that connects the two node and has the given property.