Update entities and tables