Updates the datatbase and html files