Easy way of connecting from other classes;
Add this to your construct
$this->DB = DB::getInstance();
/* MySQL settings */
define( 'DB_NAME', 'database_name' );
define( 'DB_USER', 'database_user' );
define( 'DB_PASSWORD', 'database_password' );
define( 'DB_HOST', 'localhost' );