Update entities and dao