fix database.php