Small changes all over, fixed the bug with the header being shown when logged out and got my mysql to work. I'm missing tables though, added the invoice table but now stuck on the items table.