<?php
require_once 'db/config.php';

try {
    $sql = file_get_contents('database/schema.sql');
    db()->exec($sql);
    echo "Database initialized successfully.\n";
} catch (Exception $e) {
    echo "Error initializing database: " . $e->getMessage() . "\n";
}
