Kohana 3

Hmm, that didn't work... anyway follow on to #388 

Moved the check for database.php into index.php