updating database example