How can AJAX be utilized to improve the functionality of the code snippet for updating database records?

The issue with the current code snippet for updating database records is that it reloads the entire page every time a record is updated, causing a delay in user experience. To improve this functionality, AJAX can be utilized to update the database records asynchronously without the need to reload the entire page.

```php
// AJAX code to update database records without page reload
if(isset($_POST['record_id']) && isset($_POST['new_value'])){
    $record_id = $_POST['record_id'];
    $new_value = $_POST['new_value'];

    // Update database record
    // Add your database connection code here

    // Return success message
    echo "Record updated successfully!";
    exit;
}
```

In the HTML/JS part of the code, you would need to make an AJAX call to this PHP script when a record needs to be updated. This will allow the update to happen in the background without reloading the entire page.