Update database.