db not set in index.php