Fix bugs with styles, db, and set up header