added index key
changed prepare function (added index key)
added key in structure_relation