update repository and entityes