Return de component id to register in database