made database switchable from bootstrap.php