Moved database.php presence check in index.php