add rename capabilities, fix foreign key constrain, add remove/update of register table