update database sample