init db in index.php