update database example