Update tabs and database