code cleanup and changelog added
diff --git a/system/database/DB.php b/system/database/DB.php
index fd5cf55..3044ce5 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -49,19 +49,19 @@
 		include($file_path);
 		//make packages contain database config files
 		foreach(get_instance()->load->get_package_paths() as $path)
-                {
-                    if ($path != APPPATH)
-                        {
-                        if ( file_exists($file_path = $path.'config/'.ENVIRONMENT.'/database.php'))
-                        {
-                            include($file_path);
-                        }
-                        elseif ( file_exists($file_path = $path.'config/database.php'))
-                        {
-                            include($file_path);
-                        }
-                    }
-                }
+		{
+			if ($path !== APPPATH)
+			{
+				if (file_exists ($file_path = $path.'config/'.ENVIRONMENT.'/database.php'))
+				{
+					include ($file_path);
+				}
+				elseif ( file_exists ($file_path = $path.'config/database.php'))
+				{
+					include ($file_path);
+				}
+			}
+		}
 
 		if ( ! isset($db) OR count($db) === 0)
 		{