I like ```attribute ```= ``` if```, in this case we have just less 5 line of code with a very simple logic,  anyway my refactoring was focused on the ```get_primary_key``` method, @guilleiguaran what do you think about? let' me if I have to rollback ```reset_primary_key```for merging. Thanks  in advance