Actually update the records in the database.