Make id field customizable

Then developper can define which field to use as index key in a convenient way.