Fixed bug DB::configure() and added configuration in test and example in index.php