Database doesn't connect in Kohana 3-Collection of common programming errors

I’m trying to connect to my database in Kohana 3 but it’s not connecting.

This is the query I’m trying to run from one of my modules:

$results = DB::select()->from('users')->where('verified', '=', 0)->execute();

Here’s the dump of the error:

ErrorException [ Notice ]: Undefined property: Config_File::$default
MODPATH\database\classes\kohana\database.php [67]
if($config === NULL)
{
    // Load the configuration for this database
    // echo "
";
    //die(print_r(unserialize(Kohana::config('database'))));
    $config = Kohana::config('database')->$name;
}

if(!isset($config['type']))
{
   throw new Kohana_Exception('Database type not defined in :name configuration',

I have the following config setup in application/config/database.php

Originally posted 2013-11-27 05:08:02.