Fixed database.php