Move database path into config.
Move config to sample.
Make config variables global.
Add HTML doctype.
Set logged in while in settings.