fixed the db and the html