Fixed errors in database update script.
Removed php from index page.
Enabled simple index page to test configuration, moved old php code.
Enabled staticfiles, got index page working with templating.

Staticfiles is strange...