Updates after modifying the database.